﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace HRM.Utility
{
    public class Common
    {
        public static string GetAppSettingValue(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }

        public static string GetUploadPictureFolder()
        {
            string uploadFolder = Common.GetAppSettingValue("UploadEmployeePictureFolder");
            if(!(uploadFolder.EndsWith(@"\")))
                uploadFolder+= @"\";

            return  uploadFolder;
        }
    }
}
